Improve Pyxsim tester output#57
Merged
Merged
Conversation
- Color expected comparison output - Flush setup output before simulator capture# Please enter the commit message for your changes. Lines starting
Allow Pyxsim.run_on_simulator_() to accept a verbosity argument and print captured simulator output when verbosity is enabled, while preserving capfd capture for tester comparisons.
Teach run_on_simulator_() to tee captured simulator output when verbosity is enabled while preserving capfd capture for tester comparisons. Reuse ComparisonTester filtering for verbose output so suppressed multidrive and ignored lines are hidden from the live log, with colored summary counts emitted after the filtered output.
humphrey-xmos
approved these changes
Jun 4, 2026
humphrey-xmos
left a comment
There was a problem hiding this comment.
A much better experience. Thanks.
An observation, on a failing test, I always see the Expected/Actual output as it is failing on that, but with -vv I also get Output/Golden, which is essentially the same.
Useful to be able to see the output on a passing test though.
Contributor
Author
okay, I'll take a look and make this nicer in a new pr |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This ended up going away beyond the original feature branch naming of "colors"..
Pyxsim.run_on_simulator_()so captured simulator output is printed when pytest is run with-v, while preservingcapfdcapture for tester comparisons.ComparisonTesterverbose output:-vv)coloramaas a dependency for colored terminal output.